alertMe = function (data) {
    if (data == 'success') {
        layer.msg("订餐成功，坐等开饭吧！", 2, {type: 10});

    } else {
        layer.msg("订餐失败，请重试...");
    }
}

alertM = function (data, success, failed) {
    if (data == 'success') {
        layer.msg(success, 2, {type: 10});

    } else {
        layer.alert(failed, 8);
    }
}

encodeMe = function (str) {
    return encodeURIComponent(encodeURIComponent(str));
}